package com.xuecheng.content.convert;

import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.content.entity.CourseMarket;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface CourseMarketConvert {

    CourseMarketConvert INSTANCE = Mappers.getMapper(CourseMarketConvert.class);

    @Mapping(source = "courseBaseId",target = "courseId")
    CourseMarket dto2entity(CourseBaseDTO courseBaseDTO);
}
